import ajax from "./ajax1"
export function usersApi(id) {
  return ajax({
    url: '/user/' + id
  })
}
export function taskApi() {
  return ajax({
    url: '/task',
  })
}
export function editDrawApi(id, withdrawal) {
  return ajax({
    url: '/user/' + id,
    method: 'patch',
    data: {
      withdrawal
    }
  })
}

export function editMoneyApi(id, money) {
  return ajax({
    url: '/user/' + id,
    method: 'patch',
    data: {
      money
    }
  })
}

export function editImgApi(id, img) {
  return ajax({
    url: '/user/' + id,
    method: 'patch',
    data: {
      img
    }
  })
}
